
import PlatformBase from "./platform/PlatformBase";

export enum PLATFORM {
    IOS,
    ANDROID,
    WINDOWS,
    WEB,
    WECHAT
}

export enum CHANNEL {
    OFFICIAL = 100,
    MI = 200,
    OHAYOO = 300,
    BYTE = 400,
    WECHAT = 500
}

export default class Global {
    public static playerId: number = 2;
    public static url: string = "https://game4.list.wdyou.top/newescape_web/api/";//外网url
    public static clientConfigUrl: string = "https://xyx.wd.wdyou.top/client/operations/17/dynamicConfig/dynamicConfig.json";
    public static localUrl: string = "http://127.0.0.1:8019/dishu/api";//内网url
    public static localSocketUrl: string = "ws://127.0.0.1:10100/websocket";//"ws://rb43606084.goho.co:26280/dishu/api/";//内网长链接
    public static socketUrl: string = "wss://game4.list.wdyou.top/newescape_web/api/";//外网长连接地址 
    public static version: string = "1.0.0";
    public static onlineVersion: string = "";
    public static language: string = "ch";
    public static platform: PlatformBase;
    public static platformType: PLATFORM;
    public static isWebPlatform: boolean = false;
    public static channel: CHANNEL = CHANNEL.OFFICIAL;
    public static systemTime: number = 0;
    public static timeDiffence: number = 0;//服务器客户端时间差值
    public static isDebug: boolean = true;
    public static isPrintLog: boolean = false;//是否打印运行时间
    public static fps: number = 60;
    public static age: number = 0;
    public static time: number = 0;
}